export const formFields = [
  { divider: '基本情况', span: 24 },
  /*{
    disabled: true,
    name: 'agencyName',
    label: '单位名称',
    span: 12,
    type: 'input',
    rules: [{ required: true, message: '请输入单位名称' }],
  },
  {
    name: 'legalCode',
    disabled: true,
    label: '账号(组织机构代码/统一社会信用代码号)',
    type: 'input',
    rules: [{ required: true, message: '请输入账号' }],
  },*/
  {
    name: 'countryRegion',
    label: '注册地区',
    type: 'j-area-linkage',
    rules: [{ required: true, message: '请输入注册地区' }],
  },
  { name: 'agencyRepresent', label: '法人姓名', type: 'input', rules: [{ required: true, message: '请输入法人姓名' }] },
  {
    name: 'agencyRepresentTel',
    label: '法人联系电话',
    type: 'input',
    rules: [
      { required: true, message: '请输入法人联系电话' },
      // { pattern: /^1[3-9]\d{9}$/, message: '请输入有效的手机号码' },
    ],
  },
  {
    name: 'platformArry',
    label: '代理区域',
    type: 'select',
    mode: 'multiple', rules: [{ required: true, message: '请选择' }],
    options: 'sys_platform_code',
  },
  {
    name: 'adminUser',
    label: '本地区业务负责人',
    type: 'input',
    rules: [{ required: true, message: '请输入负责人姓名' }],
  },
  {
    name: 'adminPhone',
    label: '本地区业务负责人手机号码',
    type: 'input',
    rules: [
      { required: true, message: '请输入手机号码' },
      // { pattern: /^1[3-9]\d{9}$/, message: '请输入有效的手机号码' },
    ],
  },
  {
    name: 'contact',
    label: '联系电话',
    type: 'input',
    rules: [
      { required: true, message: '请输入联系电话' },
      // { pattern: /^1[3-9]\d{9}$/, message: '请输入有效的手机号码' },
    ],
  },
  { name: 'legalFax', label: '传真', type: 'input' },
  {
    name: 'legalEmail',
    label: '电子邮箱',
    type: 'input',
    // rules: [{ type: 'email', message: '请输入有效的电子邮箱' }],
  },
  {
    name: 'legalWeb',
    label: '网站',
    type: 'input',
    // rules: [{ type: 'url', message: '请输入有效的网址' }],
  },
  {
    name: 'basicBranchBank',
    label: '开户银行联行号',
    type: 'input',
    rules: [{ required: true, message: '请输入开户银行联行号' }],
  },

  { name: 'basicBank', label: '开户银行', type: 'input', rules: [{ required: true, message: '请输入开户银行' }] },
  { name: 'basicAccountNo', label: '开户帐号', type: 'input', rules: [{ required: true, message: '请输入开户帐号' }] },
  {
    name: 'basicAccountName',
    label: '开户帐户名称',
    type: 'input',
    rules: [{ required: true, message: '请输入开户帐户名称' }],
  },

  {
    name: 'zjzyzgrs',
    label: '中级执业资格人数',
    type: 'a-input',
    rules: [{ required: true, message: '请输入中级执业资格人数' }],
  },
  {
    name: 'zjgcsrs',
    label: '造价工程师人数',
    type: 'a-input',
    rules: [{ required: false, message: '请输入造价工程师人数' }],
  },
  {
    name: 'jgmcbhqk',
    label: '机构名称变化情况',
    type: 'input',
  },
  {
    name: 'fgssl',
    label: '分公司数量',
    type: 'a-input',
  },
  {
    name: 'bscsl',
    label: '办事处数量',
    type: 'a-input',
  },
  {
    name: 'jsncwzk',
    label: '近三年财务状况',
    type: 'textarea',
    rules: [{ required: false, message: '请输入近三年财务状况' }],
  },
  {
    name: 'zytzxmzbdlzyjjb',
    label: '中央投资项目招标代理专业及级别',
    type: 'input',
    rules: [{ required: false, message: '请输入中央投资项目招标代理专业及级别' }],
  },
  {
    name: 'zytzxmzbdlspsj',
    label: '中央投资项目招标代理审批时间',
    type: 'date',
    rules: [{ required: false, message: '请选择中央投资项目招标代理审批时间' }],
  },
  {
    name: 'zytzxmzbdlzsbh',
    label: '中央投资项目招标代理证书编号',
    type: 'input',
    rules: [{ required: false, message: '请输入中央投资项目招标代理证书编号' }],
  },
  {
    name: 'gcjsxmsgzbdlzyjjb',
    label: '工程建设项目施工招标代理专业及级别',
    type: 'input',
    rules: [{ required: false, message: '请输入工程建设项目施工招标代理专业及级别' }],
  },
  {
    name: 'gcjsxmsgzbdlspsj',
    label: '工程建设项目施工招标代理审批时间',
    type: 'date',
    rules: [{ required: false, message: '请选择工程建设项目施工招标代理审批时间' }],
  },
  {
    name: 'gcjsxmsgzbdlzsbh',
    label: '工程建设项目施工招标代理证书编号',
    type: 'input',
    rules: [{ required: false, message: '请输入工程建设项目施工招标代理证书编号' }],
  },
  {
    name: 'jdcpgjzbdlzyjjb',
    label: '机电产品国际招标代理专业及级别',
    type: 'input',
    rules: [{ required: false, message: '请输入机电产品国际招标代理专业及级别' }],
  },
  {
    name: 'jdcpgjzbdlspsj',
    label: '机电产品国际招标代理审批时间',
    type: 'date',
    rules: [{ required: false, message: '请选择机电产品国际招标代理审批时间' }],
  },
  {
    name: 'jdcpgjzbdlzsbh',
    label: '机电产品国际招标代理证书编号',
    type: 'input',
    rules: [{ required: false, message: '请输入机电产品国际招标代理证书编号' }],
  },
  {
    name: 'zfcgdlzyjjb',
    label: '政府采购代理专业及级别',
    type: 'input',
    rules: [{ required: false, message: '请输入政府采购代理专业及级别' }],
  },
  {
    name: 'zfcgdlspsj',
    label: '政府采购代理审批时间',
    type: 'date',
    rules: [{ required: false, message: '请选择政府采购代理审批时间' }],
  },
  {
    name: 'zfcgdlzsbh',
    label: '政府采购代理证书编号',
    type: 'input',
    rules: [{ required: false, message: '请输入政府采购代理证书编号' }],
  },
  {
    name: 'gczxzgzyjjb',
    label: '工程咨询资格专业及级别',
    type: 'input',
    rules: [{ required: false, message: '请输入工程咨询资格专业及级别' }],
  },
  {
    name: 'gczxzgspsj',
    label: '工程咨询资格审批时间',
    type: 'date',
    rules: [{ required: false, message: '请选择工程咨询资格审批时间' }],
  },
  {
    name: 'gczxzgzs',
    label: '工程咨询资格证书',
    type: 'input',
    rules: [{ required: false, message: '请输入工程咨询资格证书' }],
  },
  {
    name: 'gcjlzgzyjjb',
    label: '工程监理资格专业及级别',
    type: 'input',
    rules: [{ required: false, message: '请输入工程监理资格专业及级别' }],
  },
  {
    name: 'gcjlzgspsj',
    label: '工程监理资格审批时间',
    type: 'date',
    rules: [{ required: false, message: '请选择工程监理资格审批时间' }],
  },
  {
    name: 'gcjlzgzsbh',
    label: '工程监理资格证书编号',
    type: 'input',
    rules: [{ required: false, message: '请输入工程监理资格证书编号' }],
  },
  {
    name: 'gczjzgzyjjb',
    label: '工程造价资格专业及级别',
    type: 'input',
    rules: [{ required: false, message: '请输入工程造价资格专业及级别' }],
  },
  {
    name: 'gczjzgspsj',
    label: '工程造价资格审批时间',
    type: 'date',
    rules: [{ required: false, message: '请选择工程造价资格审批时间' }],
  },
  {
    name: 'gczjzfzsbh',
    label: '工程造价资格证书编号',
    type: 'input',
    rules: [{ required: false, message: '请输入工程造价资格证书编号' }],
  },
  {
    name: 'qbrysm',
    label: '全部人员数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入全部人员数目' }],
  },
  {
    name: 'qbgjzcsm',
    label: '全部高级职称数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入全部高级职称数目' }],
  },
  {
    name: 'qbssysxlsm',
    label: '全部硕士以上学历数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入全部硕士以上学历数目' }],
  },
  {
    name: 'zbcyrysm',
    label: '招标从业人员数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入招标从业人员数目' }],
  },
  {
    name: 'zbcyryzjjyszsm',
    label: '招标从业人员中级及以上职数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入招标从业人员中级及以上职数目' }],
  },
  {
    name: 'qbzjzcsm',
    label: '全部中级职称数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入全部中级职称数目' }],
  },
  {
    name: 'qbjbzyzgsm',
    label: '全部具备职业资格数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入全部具备职业资格数目' }],
  },
  {
    name: 'zbcyrygjzcsm',
    label: '招标从业人员高级职称数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入招标从业人员高级职称数目' }],
  },
  {
    name: 'zbcyryzjzcsm',
    label: '招标从业人员中级职称数目',
    type: 'a-input',
    rules: [{ required: false, message: '请输入招标从业人员中级职称数目' }],
  },
  {
    name: 'zbcyrzzjjyszzb',
    label: '招标从业人员中级及以上职占比',
    type: 'a-input',
    rules: [{ required: false, message: '请输入招标从业人员中级及以上职占比' }],
  },
  {
    name: 'bgsbxxwl',
    label: '办公设备信息网络',
    type: 'input',
    rules: [{ required: false, message: '请输入办公设备信息网络' }],
  },
  {
    name: 'ydjzbssl',
    label: '已登记招标师数量',
    type: 'a-input',
    rules: [{ required: false, message: '请输入已登记招标师数量' }],
  },
  {
    name: 'ydjzbszb',
    label: '已登记招标师占比',
    type: 'a-input',
    rules: [{ required: false, message: '请输入已登记招标师占比' }],
  },
  {
    name: 'gcjslzyzgrysl',
    label: '工程建设类职业资格人员数量',
    type: 'a-input',
    rules: [{ required: false, message: '请输入工程建设类职业资格人员数量' }],
  },
  {
    name: 'jlgcssl',
    label: '监理工程师数量',
    type: 'a-input',
    rules: [{ required: false, message: '请输入监理工程师数量' }],
  },
  {
    name: 'yjjzssl',
    label: '一级建造师数量',
    type: 'a-input',
    rules: [{ required: false, message: '请输入一级建造师数量' }],
  },
  {
    name: 'qtzyzgrysl',
    label: '其他职业资格人员数量',
    type: 'a-input',
    rules: [{ required: false, message: '请输入其他职业资格人员数量' }],
  },
  {
    name: 'qtzyzgrybz',
    label: '其他职业资格人员备注',
    type: 'textarea',
    rules: [{ required: false, message: '请输入其他职业资格人员备注' }],
  },
  { name: 'remark', label: '相关意见', type: 'textarea', rules: [{ required: false, message: '请输入相关意见' }] },
  {
    name: 'zczbUnit',
    label: '注册资本单位',
    type: 'select',
    options: [
      { value: '万元', label: '万元' },
      { value: '亿元', label: '亿元' },
    ],
    rules: [{ required: false, message: '请选择注册资本单位' }],
  },
  {
    name: 'legalZipCode',
    label: '邮政编码',
    type: 'input',
    rules: [
      { required: false, message: '请输入邮政编码' },
      // { pattern: /^\d{6}$/, message: '请输入有效的邮政编码' },
    ],
  },
  { name: 'address', label: '详细地址', type: 'input', rules: [{ required: true, message: '请输入详细地址' }] },

  { divider: '营业执照', span: 24 },
  {
    name: 'licenseNo',
    label: '营业执照号码',
    type: 'input',
    rules: [{ required: true, message: '请输入营业执照号码' }],
  },
  {
    name: 'regRmb',
    label: '注册资本人民币',
    type: 'a-input',
    rules: [{ required: true, message: '请输入注册资本人民币' }],
  },
  {
    name: 'legalUnitAddress',
    label: '注册地址',
    type: 'input',
    rules: [{ required: true, message: '请输入注册地址' }],
  },
  {
    name: 'legalType',
    label: '公司类型',
    type: 'select',
    options: [
      { value: '有限责任公司', label: '有限责任公司' },
      { value: '股份有限公司', label: '股份有限公司' },
    ],
    rules: [{ required: true, message: '请选择公司类型' }],
  },
  {
    name: 'businessScope',
    label: '经营范围',
    type: 'textarea',
    rules: [{ required: true, message: '请输入经营范围' }],
  },
  { name: 'legalRegistDate', label: '成立日期', type: 'date', rules: [{ required: true, message: '请选择成立日期' }] },
  {
    name: 'yearCheck',
    label: '年检年度',
    type: 'a-date-picker',
    params: {},
    rules: [{ required: true, message: '请选择年检年度' }],
  },
  {
    name: 'licenseEndDate',
    label: '营业执照失效日期',
    type: 'date',
    rules: [{ required: true, message: '请选择营业执照失效日期' }],
  },

  {
    name: 'licenseStartDate',
    label: '营业执照开始日期',
    type: 'date',
    rules: [{ required: true, message: '请选择营业执照开始日期' }],
  },
  { name: 'fzjg', label: '登记机关', type: 'input', rules: [{ required: true, message: '请输入登记机关' }] },
  { name: 'gsnjjg', label: '工商年检结果', type: 'input', rules: [{ required: true, message: '请输入工商年检结果' }] },
  {
    name: 'companyIntoduction',
    label: '单位简介',
    type: 'textarea',
    rules: [{ required: true, message: '请输入单位简介' }],
  },
  /*
  { name: 'checkCode', label: '验证码', type: 'input', rules: [{ required: true, message: '请输入验证码' }] },
  { name: 'checkKey', label: '请求验证码key', type: 'input', rules: [{ required: true, message: '请输入验证码key' }] },
  { name: 'checkTime', label: 'checkTime', type: 'date-time', rules: [{ required: true, message: '请选择checkTime' }] },


  { name: 'createBy', label: '创建人', type: 'input', rules: [{ required: true, message: '请输入创建人' }] },
  { name: 'createTime', label: '创建时间', type: 'date-time', rules: [{ required: true, message: '请选择创建时间' }] },

  { name: 'password', label: 'password', type: 'input', rules: [{ required: true, message: '请输入密码' }] },*/
  {
    name: 'pathHouse',
    label: '开封分支机构/办事处房屋租赁合同（或房产证）',
    type: 'upload',
    rules: [{ required: true, message: '请上传房屋租赁合同或房产证' }],
  },
  /* {
    name: 'pathKhzm',
    label: '基本户开户证明',
    type: 'upload',
    rules: [{ required: true, message: '请上传基本户开户证明' }],
  },
  { name: 'pathYyzz', label: '营业执照', type: 'upload', rules: [{ required: true, message: '请上传营业执照' }] },*/

  /*{
    name: 'state',
    label: '状态',
    type: 'select',
    options: [
      { value: '0', label: '待审核' },
      { value: '1', label: '通过' },
      { value: '2', label: '驳回' },
    ],
    rules: [{ required: true, message: '请选择状态' }],
  },
  {
    name: 'sysUserId',
    label: '对应sys_user表信息',
    type: 'input',
    rules: [{ required: true, message: '请输入对应sys_user表信息' }],
  },*/
]
export const formFields2 = [
  { name: 'name', label: '姓名', type: 'string', rules: [{ required: true, message: '请输入姓名' }] },
  {
    name: 'sex',
    label: '性别',
    type: 'select',
    options: [
      { label: '男', value: 0 },
      { label: '女', value: 1 },
    ],
    rules: [{ required: true, message: '请选择性别' }],
  },
  { name: 'cardCode', label: '身份证号', type: 'string', rules: [{ required: true, message: '请输入身份证号' }] },
  { name: 'phone', label: '手机号码', type: 'string', rules: [{ required: true, message: '请输入手机号码' }] },
  {
    name: 'cardType',
    label: '身份证件类型',
    type: 'select',
    options: 'card_type',
    rules: [{ required: true, message: '请选择' }],
  },
  {
    name: 'region',
    label: '行政区域代码',
    type: 'j-area-linkage',
    rules: [{ required: false, message: '请输入行政区域代码' }],
  },
  { name: 'cyjl', label: '从业经历', type: 'string', rules: [{ required: false, message: '请输入从业经历' }] },
  { name: 'department', label: '所属部门', type: 'string', rules: [{ required: false, message: '请输入所属部门' }] },
  { name: 'zc', label: '职称', type: 'a-tree-select', rules: [{ required: false, message: '请输入职称' }] },
  { name: 'zcCode', label: '职称编号', type: 'string', rules: [{ required: false, message: '请输入职称编号' }] },
  {
    name: 'rzDate',
    label: '入职时间',
    type: 'string(date-time)',
    valueformat: 'YYYY-MM-DD',
    rules: [{ required: false, message: '请选择入职时间' }],
  },
  {
    name: 'dlDate',
    label: '从事代理时间',
    type: 'string(date-time)',
    valueformat: 'YYYY-MM-DD',
    rules: [{ required: false, message: '请选择从事代理时间' }],
  },
  {
    name: 'jsgczbdlsgzbh',
    label: '建设工程招标代理上岗证编号',
    type: 'string',
    rules: [{ required: false, message: '请输入建设工程招标代理上岗证编号' }],
  },
  {
    name: 'jsgczbdlsgzyxq',
    label: '建设工程招标代理上岗证有效期',
    type: 'string(date-time)',
    rules: [{ required: false, message: '请选择建设工程招标代理上岗证有效期' }],
  },
  {
    name: 'zfcgzbdlsgzbh',
    label: '政府采购招标代理上岗证编号',
    type: 'string',
    rules: [{ required: false, message: '请输入政府采购招标代理上岗证编号' }],
  },
  {
    name: 'zgcgzbdlsgzyxq',
    label: '政府采购招标代理上岗证有效期',
    type: 'string(date-time)',
    valueformat: 'YYYY-MM-DD',
    rules: [{ required: false, message: '请选择政府采购招标代理上岗证有效期' }],
  },
  {
    name: 'zyzczg',
    label: '执业注册资格',
    type: 'string',
    rules: [{ required: false, message: '请输入执业注册资格' }],
  },
  {
    name: 'zcgzyzggzh',
    label: '注册类执业资格证号',
    type: 'string',
    rules: [{ required: false, message: '请输入注册类执业资格证号' }],
  },
  {
    name: 'zyzgzzy',
    label: '执业资格证专业',
    type: 'string',
    rules: [{ required: false, message: '请输入执业资格证专业' }],
  },
  {
    name: 'zjgprq',
    label: '最近培训日期',
    type: 'string(date-time)',
    rules: [{ required: false, message: '请选择最近培训日期' }],
  },
  { name: 'school', label: '毕业院校', type: 'string', rules: [{ required: false, message: '请输入毕业院校' }] },
  { name: 'sxzy', label: '所学专业', type: 'string', rules: [{ required: false, message: '请输入所学专业' }] },
  { name: 'xz', label: '学制', type: 'string', rules: [{ required: false, message: '请输入学制' }] },
  { name: 'xl', label: '学历', type: 'string', rules: [{ required: false, message: '请输入学历' }] },
  {
    name: 'bysj',
    label: '毕业时间',
    type: 'string(date-time)',
    rules: [{ required: false, message: '请选择毕业时间' }],
  },
  {
    name: 'birthDay',
    label: '出生日期',
    type: 'string(date-time)',
    rules: [{ required: true, message: '请选择出生日期' }],
  },
  { name: 'companyTel', label: '单位电话', type: 'string', rules: [{ required: false, message: '请输入单位电话' }] },

  {
    name: 'otherTel',
    label: '其他联系方式',
    type: 'string',
    rules: [{ required: false, message: '请输入其他联系方式' }],
  },
  {
    name: 'shbxzh',
    label: '社会保险证号',
    type: 'string',
    rules: [{ required: false, message: '请输入社会保险证号' }],
  },
  { name: 'zw', label: '职务', type: 'string', rules: [{ required: false, message: '请输入职务' }] },
  {
    name: 'cyksDate',
    label: '从业开始时间',
    type: 'string(date-time)',
    rules: [{ required: false, message: '请选择从业开始时间' }],
  },
  { name: 'remark', label: '备注说明', type: 'string', rules: [{ required: false, message: '请输入备注说明' }] },
  /*{ name: 'checkBy', label: 'checkBy', type: 'string', rules: [{ required: false, message: '请输入checkBy' }] },

  {
    name: 'checkTime',
    label: 'checkTime',
    type: 'string(date-time)',
    rules: [{ required: false, message: '请选择checkTime' }],
  },

  { name: 'createBy', label: '创建人', type: 'string', rules: [{ required: false, message: '请输入创建人' }] },
  {
    name: 'createTime',
    label: '创建时间',
    type: 'string(date-time)',
    rules: [{ required: false, message: '请选择创建时间' }],
  },

  { name: 'id', label: 'id', type: 'integer(int64)', rules: [{ required: false, message: '请输入id' }] },
  { name: 'isUse', label: '是否禁用', type: 'string', rules: [{ required: false, message: '请选择是否禁用' }] },

  {
    name: 'legalCode',
    label: '账号(组织机构代码/统一社会信用代码号)',
    type: 'string',
    rules: [{ required: false, message: '请输入账号' }],
  },



  { name: 'state', label: '状态', type: 'string', rules: [{ required: false, message: '请选择状态' }] },

  { name: 'updateBy', label: '修改人', type: 'string', rules: [{ required: false, message: '请输入修改人' }] },
  {
    name: 'updateTime',
    label: '修改时间',
    type: 'string(date-time)',
    rules: [{ required: false, message: '请选择修改时间' }],
  },*/
]
export function getComponentType(type) {
  switch (type) {
    case 'string(date-time)':
      return 'a-date-picker'
    case 'string':
      return 'a-input'
    case 'select':
      return 'a-select'
    case 'integer(int64)':
      return 'a-input-number'
    case 'j-area-linkage':
      return 'j-area-linkage'
    case 'a-tree-select':
      return 'a-tree-select'
    case 'input':
      return 'a-input'
    case 'textarea':
      return 'a-textarea'
    case 'select':
      return 'a-select'
    case 'date':
      return 'a-date-picker'
    case 'checkbox':
      return 'a-checkbox-group'
    case 'upload':
      return 'j-upload'
    default:
      return type || 'a-input'
  }
}
